FROM openjdk:8-jre-alpine
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV  TIME_ZONE Asia/Shanghai
RUN apk add --no-cache tzdata  \
############设置时区
&& echo "Asia/Shanghai" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
RUN apk add --no-cache font-adobe-100dpi ttf-dejavu fontconfig
#ADD ./src/main/resources/font/simsun.ttc /usr/share/fonts/simsun.ttc
RUN chmod -R 755 /usr/share/fonts/

VOLUME /tmp

ADD ./target/feel-auth.jar /feel-auth.jar

EXPOSE 10083

ENTRYPOINT ["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-jar","/feel-auth.jar","--spring.profiles.active=prod"]
